﻿#include "output3.h"
#include "ui_output3.h"

output3::output3(QStringList classNames,QWidget *parent) :
    QDialog(parent),
    ui(new Ui::output3)
{
    ui->setupUi(this);
    ui->comboBox->addItems(classNames);
}

output3::~output3()
{
    delete ui;
}

void output3::on_pushButton_3_clicked()
{
    this->reject();
}


void output3::on_pushButton_clicked()
{
    ui->lineEdit->setText(QFileDialog::getSaveFileName(0,"选择保存路径",QDir::homePath(),"文本文件(*.txt);;所有文件(*.*)"));
}


void output3::on_pushButton_2_clicked()
{
    emit outPut3(ui->comboBox->currentText(),ui->lineEdit->text());
    this->accept();
}

